c26852d39224c31d77f8ed66d48d9ad2b5b983c3,plugin/src/test/java/com/stratio/cassandra/lucene/schema/mapping/BitemporalMapperTest.java,BitemporalMapperTest,testReadTtToFieldFromSimpleDateColumn,#,678

Before Change


        BitemporalMapper mapper = bitemporalMapper("vtFrom", "vtTo", "ttFrom", "ttTo").pattern("timestamp")
                                                                                      .build("field");
        Columns columns = new Columns();
        columns.add(Column.builder("vtFrom").buildWithComposed(0, SimpleDateType.instance));
        columns.add(Column.builder("vtTo").buildWithComposed(0, SimpleDateType.instance));
        columns.add(Column.builder("ttFrom").buildWithComposed(0, SimpleDateType.instance));
        columns.add(Column.builder("ttTo").buildWithComposed(5, SimpleDateType.instance));
        assertEquals("Date parsing is wrong",
                     new BitemporalDateTime(5L * 24L * 60L * 60L * 1000L),

After Change


        BitemporalMapper mapper = bitemporalMapper("vtFrom", "vtTo", "ttFrom", "ttTo").pattern("timestamp")
                                                                                      .build("field");
        Columns columns = new Columns();
        ByteBuffer bb = SimpleDateType.instance.fromString("2015-10-10");
        columns.add(Column.builder("ttTo").buildWithDecomposed(bb, SimpleDateType.instance));
        assertEquals("Date parsing is wrong",
                     new BitemporalDateTime(1444435200000L),